/**
 * \file installer/main.c
 * \author Davide Gessa
 * \date 10-27-2009
 */
#include <stdio.h>
#include <malloc.h>

/**
 * Clear the screen
 */
void clear_screen()
{
	system("clear");
}


/**
 * Installer a riga di commando
 */
int main(int argc, char **argv)
{
	int menu_main = 1;
	int choice;
	
	clear_screen();	
	while(menu_main)
	{
		printf("Spiderpig Installer\n");
		printf("-> Main menu'\n");
		printf("  -> 1 - Prepare HD\n");
		printf("  -> 2 - Select kernel\n");
		printf("  -> 3 - Select packets\n");
		printf("  -> 4 - Bootloader\n");
		printf("  -> 5 - Configs\n");
		printf("  -> 6 - Commit\n");
		printf("  -> 7 - Shutdown\n");
		printf("-> Selection: ");
		scanf("%d", &choice);
		
		switch(choice)
		{
			case 1:
				break;
			
			case 2:
				break;
			
			case 3:
				break;
			
			case 4:
				break;
			
			case 5:
				break;
			
			case 6:
				break;
			
			case 7:
				break;
				
			default:
				printf("error: incorrect selection!\n");
				break;			
		}
	}

	return 0;
}
